package com.lifl.b328.garden.model;

import java.io.Serializable;
import java.util.Collection;
import java.util.HashMap;
import java.util.Map;

/**
 * @uml.dependency   supplier="com.lifl.b328.garden.model.Content"
 */
public class Note implements Serializable{

	private static final long serialVersionUID = 5919059684673763172L;
	
	protected Map<String, Content> contents;
	protected User user;
	
		public Note(){
			contents = new HashMap<String, Content>();
		}
		
	public void addContent(String key,Content content){
		contents.put(key, content);
	}
	
	public Content getContentByKey(String key){
		return contents.get(key);
	}
	
	public Collection<Content> getContents(){
		return contents.values();
	}

	public void addUser(User u) {
		this.user = u;
	}

	public User getUser() {
		return this.user;
	}
	
}
